package com.hnevc.mallserver3.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_goods")
@ApiModel(value = "Goods", description = "商品表")
public class Goods {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
    @ApiModelProperty(value = "商品详情")
    private String content;
    @ApiModelProperty(value = "商品图片")
    private String icon;
    @ApiModelProperty(value = "类别ID")
    private Long typeId;
    @ApiModelProperty(value = "商品价格")
    private Double price;

    // 省略getter和setter方法，‌实际使用时请添加
}